package com.cc.secondKill.dao;

import com.cc.secondKill.pojo.Order;
import org.apache.ibatis.annotations.Param;

public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    Order getOrderByGoodsIdAndPhone(@Param("goodsId")Integer goodsId,@Param("phone")String phone);
}